package com.example.shortmessage.model;

import com.example.shortmessage.contract.LoginContract;
import com.example.shortmessage.data.entity.User;

import org.litepal.LitePal;

/**
 * @author 27638
 */
public class LoginModel implements LoginContract.Model {
    @Override
    public User query(String username) {

        return LitePal.where("user = ?", username).findFirst(User.class);
    }
}
